<include file="public@header"/>
</head>
<body>
    <div class="layui-fluid">
        

        <form action="{:url('audit_flow/editPost')}" method="post" class="layui-form js-ajax-form margin-top-20">
            <div class="smart-widget widget-blue">
            <div class="layui-card">
                <div class="layui-card-header">{:lang('ADMIN_AUDITFLOW_EDIT')}</div>
                    <div class="layui-card-body">
                        <div class="layui-form-item">
                            <label class="layui-form-label">{:lang('AUDIT_FLOW_NAME')}</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" id="input-name" name="name" required value="{$result.name}">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-col-sm2 control-label">{:lang('DESCRIPTION')}</label>
                            <div class="layui-input-block">
                                <textarea class="layui-input" name="description">{$result.description}</textarea>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <input type="hidden" name="audit_id" value="{$result.audit_id}">
                                <if condition="cmf_auth_check(cmf_get_current_admin_id(), 'admin/AuditFlow/editPost')">
                                    <button type="submit" class="layui-btn layui-btn-normal js-ajax-submit">{:lang('SAVE')}</button>
                                </if>
                                <a class="layui-btn layui-btn-primary" href="{:url('AuditFlow/index')}">{:lang('BACK')}</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
            
            
        
    </div>
<include file="public@footer"/>
